package se.sll.service.catalogue.composite.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import lombok.Data;

/**
 *
 * @author Jiri Uosukainen
 */
@Data
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class UnitList implements Serializable {   
    static final long serialVersionUID = 1L;
    private List<UnitId> units = new ArrayList<UnitId>();

    public boolean isEmpty(){
        return units == null || units.isEmpty();
    }
}